﻿<UserControl x:Class="MishraReader.Views.Settings.DisplayTabItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:mishraReader="clr-namespace:MishraReader;assembly=MishraReader.ViewModels"
             xmlns:platformVMs="clr-namespace:MishraReader.PlatformVMs"
             d:DataContext="{d:DesignInstance Type=platformVMs:SettingsViewModel, IsDesignTimeCreatable=False}"
             d:DesignHeight="473" d:DesignWidth="657" 
             Foreground="{DynamicResource MetroTextLight}">
    <StackPanel>
        <TextBlock Text="{x:Static mishraReader:Strings.CustomizeYourMishraReader}" Style="{DynamicResource MetroHeader2}" Margin="0,0,0,0"/>
        <TextBlock TextWrapping="Wrap" Text="{x:Static mishraReader:Strings.ChooseBackground}" />
        <TextBlock Text="{x:Static mishraReader:Strings.AccentColor}" Style="{DynamicResource MetroHeader3}"  Margin="0,30,0,5"/>
        <ListBox Style="{DynamicResource ListBoxWithoutScrollViewer}" SelectedItem="{Binding SelectedAccentColor}"  ItemsSource="{Binding AccentColors}" ItemContainerStyle="{DynamicResource RadioButtonListBoxItem}" MaxWidth="550" HorizontalAlignment="Left">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Rectangle Width="60" Height="40" Fill="{Binding}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
       
        <TextBlock Text="{x:Static mishraReader:Strings.DisplayOptions}" Style="{DynamicResource MetroHeader2}" Margin="0,30,0,15"/>
        <CheckBox Margin="0,0,0,15" IsChecked="{Binding ShowOnlyPostSummary, Mode=TwoWay}">
            <StackPanel>
                <TextBlock Text="{x:Static mishraReader:Strings.DisplaySummary}"/>
                <TextBlock Text="{x:Static mishraReader:Strings.DisplaySummaryHelp}" Style="{DynamicResource MetroSubText}" />
            </StackPanel>
        </CheckBox>
        
        <CheckBox Margin="0,0,0,15" IsChecked="{Binding UseNotificationIcon, Mode=TwoWay}" x:Name="notifyCheck">
            <StackPanel>
                <TextBlock Text="{x:Static mishraReader:Strings.UseNotifyIcon}"/>
                <TextBlock Text="{x:Static mishraReader:Strings.UseNotifyIconHelp}" Style="{DynamicResource MetroSubText}" />
            </StackPanel>
        </CheckBox>

        <CheckBox Margin="0,0,0,15" IsChecked="{Binding ShowInTaskBar, Mode=TwoWay}" IsEnabled="{Binding ElementName=notifyCheck, Path=IsChecked}">
            <StackPanel>
                <TextBlock Text="{x:Static mishraReader:Strings.ShowInTaskBar}"/>
                <TextBlock Text="{x:Static mishraReader:Strings.ShowInTaskBarHelp}" Style="{DynamicResource MetroSubText}" />
            </StackPanel>
        </CheckBox>
        

    </StackPanel>

</UserControl>
